@import './base.scss';

// 单行文字省略, 必须写宽度
@mixin ellipsis() {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

// 多行文字省略
@mixin ellipsiss($lines) {
	display: -webkit-box;
	word-break: break-all;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: $lines;
	/*! autoprefixer: ignore next */
	-webkit-box-orient: vertical;
}

// space-evenly 兼容
@mixin space-evenly() {
	justify-content: space-between;
	&::after {
		content: '';
		display: block;
	}
	&::before {
		content: '';
		display: block;
	}
}





